<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Newton Dynamics: ndCudaDeviceBuffer&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_php.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Newton Dynamics
   &#160;<span id="projectnumber">4.00</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classnd_cuda_device_buffer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnd_cuda_device_buffer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ndCudaDeviceBuffer&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0ea10a4b13c6dec08be0fc3cd3d13948"><td class="memItemLeft" align="right" valign="top"><a id="a0ea10a4b13c6dec08be0fc3cd3d13948"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>GetCount</b> () const</td></tr>
<tr class="separator:a0ea10a4b13c6dec08be0fc3cd3d13948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ebf59829b00e6a17fd5ec0409e6a974"><td class="memItemLeft" align="right" valign="top"><a id="a5ebf59829b00e6a17fd5ec0409e6a974"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetCount</b> (int count)</td></tr>
<tr class="separator:a5ebf59829b00e6a17fd5ec0409e6a974"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1518abbe7ce0a66ff72623e4ad76dddd"><td class="memItemLeft" align="right" valign="top"><a id="a1518abbe7ce0a66ff72623e4ad76dddd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Clear</b> ()</td></tr>
<tr class="separator:a1518abbe7ce0a66ff72623e4ad76dddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40206d08fc50c81f9adaad08d09969a2"><td class="memItemLeft" align="right" valign="top"><a id="a40206d08fc50c81f9adaad08d09969a2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Resize</b> (int count)</td></tr>
<tr class="separator:a40206d08fc50c81f9adaad08d09969a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3116e45cfd01fc5d0cb8d9798b317d2"><td class="memItemLeft" align="right" valign="top"><a id="ac3116e45cfd01fc5d0cb8d9798b317d2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>GetCapacity</b> () const</td></tr>
<tr class="separator:ac3116e45cfd01fc5d0cb8d9798b317d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ef07751f1f5e2bf437a898d4c70973a"><td class="memItemLeft" align="right" valign="top"><a id="a3ef07751f1f5e2bf437a898d4c70973a"></a>
T &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i)</td></tr>
<tr class="separator:a3ef07751f1f5e2bf437a898d4c70973a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae086e83c4bb9db7415ee16f30537fd36"><td class="memItemLeft" align="right" valign="top"><a id="ae086e83c4bb9db7415ee16f30537fd36"></a>
const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i) const</td></tr>
<tr class="separator:ae086e83c4bb9db7415ee16f30537fd36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a12256624c8640b29eff091c51725f3"><td class="memItemLeft" align="right" valign="top"><a id="a6a12256624c8640b29eff091c51725f3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ReadData</b> (const T *const src, int elements)</td></tr>
<tr class="separator:a6a12256624c8640b29eff091c51725f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7af274bc28e00586433be03e81bec958"><td class="memItemLeft" align="right" valign="top"><a id="a7af274bc28e00586433be03e81bec958"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>WriteData</b> (T *const dst, int elements) const</td></tr>
<tr class="separator:a7af274bc28e00586433be03e81bec958"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a727093a61d333ee62a37eca01b03c318"><td class="memItemLeft" align="right" valign="top"><a id="a727093a61d333ee62a37eca01b03c318"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ReadData</b> (const T *const src, int elements, cudaStream_t stream)</td></tr>
<tr class="separator:a727093a61d333ee62a37eca01b03c318"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35592523dd2d044e9a5d6e585460b56f"><td class="memItemLeft" align="right" valign="top"><a id="a35592523dd2d044e9a5d6e585460b56f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>WriteData</b> (T *const dst, int elements, cudaStream_t stream) const</td></tr>
<tr class="separator:a35592523dd2d044e9a5d6e585460b56f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a94f1218caab274616f6a8327edb505ea"><td class="memItemLeft" align="right" valign="top"><a id="a94f1218caab274616f6a8327edb505ea"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><b>m_array</b></td></tr>
<tr class="separator:a94f1218caab274616f6a8327edb505ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ef4f087a07b14a66ce3c102ec30152e"><td class="memItemLeft" align="right" valign="top"><a id="a7ef4f087a07b14a66ce3c102ec30152e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_size</b></td></tr>
<tr class="separator:a7ef4f087a07b14a66ce3c102ec30152e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f58e558d88acd418b27c39dd876a6c9"><td class="memItemLeft" align="right" valign="top"><a id="a9f58e558d88acd418b27c39dd876a6c9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_capacity</b></td></tr>
<tr class="separator:a9f58e558d88acd418b27c39dd876a6c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classnd_cuda_device_buffer.html">ndCudaDeviceBuffer</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
